﻿#region Using Directives

    using System;

    using Csla;

#endregion

namespace MarketPulse.BusinessLogic.Common.Criteria
{
    /// <summary>
    /// Criteria class specifying the GUID to use to identify a single Visit
    /// </summary>
    [Serializable]
    public class VisitGUIDCriteria : CriteriaBase<VisitGUIDCriteria>
    {

        #region Constructors

            /// <summary>
            /// Default constructor for this class
            /// </summary>
            /// <param name="VisitGuid">The Guid of the Visit to associate with this criteria</param>                      
            public VisitGUIDCriteria(Guid VisitGuid)
            {
                VisitGUID = VisitGuid;
            }

        #endregion

        #region Properties

            /// <summary>
            /// This Guid is used to identify the Visit object associated with this criteria
            /// </summary>
            public static PropertyInfo<Guid?> VisitGUIDProperty = RegisterProperty<Guid?>(p => p.VisitGUID);
            /// <summary>
            /// This Guid is used to identify the Visit object associated with this criteria
            /// </summary>
            public Guid? VisitGUID
            {
                get { return ReadProperty(VisitGUIDProperty); }
                private set { LoadProperty(VisitGUIDProperty, value); }
            }

        #endregion

    }
}
